package com.lmmob.autotest.uitest.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtils {
    public static String sed(String text, String regx) {
        Pattern p = Pattern.compile(regx);
        Matcher m = p.matcher(text);
        if (m.find())
            return text.substring(m.start(1), m.end(1));
        else
            return null;
    }
}
